package com.example.singlelimitdemo;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestApi {

    @GetMapping("/get1")
    @AccessLimit(key = "TestApi.test1", period = 1, count = 3, name = "接口1限流", prefix = "limit")
    public String test1(){
        return "ha ha ha !!!";
    }


}
